<template>
  <div class="newbag">
      <img src="https://brup.shengri.cn/goods/2019/03/FtWSnPbtFfmBbV--NWe8kuBK2F4c.jpg-w6" alt="" @click="fun()" ref="change">
  </div>
</template>

<script>
export default {
methods:{
    fun(){
        if(document.cookie == "" || document.cookie == null){
            this.$router.push("/login")
        }else{
           this.$refs.change.src="https://brup.shengri.cn/goods/2019/03/FkUjBOixWmDoFaru5TQEGOgEX1q0.jpg-w6"
        }
    }
},

}
</script>

<style scoped>
.newbag{

    width: 100%;
}
.newbag img{
      display: block;
    width: 100%;
    border: 0;
}

</style>